<?php
$this->pageTitle = Yii::app()->name;
?>
<?php $link = 'http://www.silverlandhotels.com' ?>
<style>
    .ui-content{padding:0;}
</style>
<div class="slide">
    <a class="arrow-left" href="#"></a> 
    <a class="arrow-right" href="#"></a>
    <div class="photo-slide swiper-wrapper">
        <?php
        $count = 5;
        if ($hotel === 'siverland-inn' || $hotel == 'silverland-boutique-hotel')
            $count = 4;
        for ($i = 1; $i <= $count; $i++):
            ?>
            <div class="swiper-slide">
                <img src="<?= Yii::app()->theme->baseUrl ?>/images/slides/<?= $hotel ?>/<?= $hotel ?>-<?= $i ?>.jpg">
            </div>
            <?php endfor;
        ?>
    </div>
</div>

<div class="btn-book-slide">
    <a href="<?= Yii::app()->params['tanhailong']; ?>/<?= $hotel ?>/search.html" data-ajax="false">BOOK NOW</a>
</div>
<div data-role="collapsibleset" data-theme="a" class="content-description" id="map-page">
    <div data-role="collapsible">
        <h2>Introduction</h2>
        <div class="description">
            <?php
            echo $content;
            ?>
        </div>
    </div>
    <div class="contact">
        <h3>Contact Information</h3>
        <div>
            <p><?php echo $currentHotel['address'][$lang]?>, <?php echo $currentHotel['city'][$lang]?>, <?php echo $currentHotel['country'][$lang]?></p>
            <p>Tel: <?php echo $currentHotel['tel']?></p>
            <p>Email: <?php echo $currentHotel['email']?></p>
        </div>
    </div>
    <div class="map-content" id="map-canvas">

    </div>
</div>
<script type="text/javascript">
    $(document).ready(function() {        
        var ad ='<?php echo $currentHotel['address']['vi'] . ', ' . $currentHotel['city']['vi']; ?>' 
        var myLatlng = new google.maps.LatLng(<?php echo T_googlemap::get_map_google($currentHotel['address']['vi'] . ', ' . $currentHotel['city']['vi']) ?>);
        var myOptions = {
            zoom: 17,
            center: myLatlng,
            mapTypeId: google.maps.MapTypeId.ROADMAP
        }
        var map = new google.maps.Map(document.getElementById("map-canvas"), myOptions); 
        // Biến text chứa nội dung sẽ được hiển thị
        var text;
        text= "<b style='color:#00F'><?php echo $currentHotel['fullName'] ?></b>";
        var infowindow = new google.maps.InfoWindow(
        { content: text,
            size: new google.maps.Size(100,50),
            position: myLatlng
        });
        infowindow.open(map);    
        var marker = new google.maps.Marker({
            position: myLatlng, 
            map: map,
            title:"<?php echo $currentHotel['fullName']; ?>"
        });
    });
</script>